package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-21
 * Time: 22:42
 */
public class Test {
    public static void main(String[] args) {
        Arraylist list = new Arraylist();
        list.add(10);
        list.add(8);
        list.add(7);
        list.add(0);
        list.add(2,2);
        System.out.println(list.contains(2));
        System.out.println(list.indexOf(2));


        list.display();
    }
}
